<!DOCTYPE html>
<html xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http://www.baidu.com/2010/xbdml>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<title>{$project_name}后台管理系统</title>
		<!--<link rel="shortcut icon" href="favicon.ico">-->
		<link href="__ADMIN__/css/bootstrap.min.css?v=3.3.5" 			 rel="stylesheet">
		<link href="__ADMIN__/css/font-awesome.min.css?v=4.4.0"	 rel="stylesheet">
		<link href="__ADMIN__/css/animate.min.css" 							 rel="stylesheet">
		<link href="__ADMIN__/css/style.min.css?v=4.1.0" 					 rel="stylesheet">
		<link href="__ADMIN__/css/jquery.json-viewer.css" 					 rel="stylesheet">
		<link rel="stylesheet" href="__ADMIN__/plugins/layui/css/layui.css" media="all" />
		<style>
			.navbar-form-custom .form-control {
				font-size: 20px;
			}
			.dropdown, .dropup {
			    position: relative;
			    text-align: center;
			}
		</style>

	</head>
	
	<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
		<div id="wrapper">
			<!--左侧导航开始-->
			<nav class="navbar-default navbar-static-side" role="navigation">
				<div class="nav-close"><i class="fa fa-times-circle"></i>
				</div>
				<div class="sidebar-collapse">
					<ul class="nav" id="side-menu">
						<li class="nav-header">
							<div class="dropdown profile-element">
							<if condition="$user['avatar'] neq null">
								<span><img alt="image" class="img-circle" style="width: 70px;height:70px;" src="{$user['avatar']}" /></span>
							<else/>
								<span><img alt="image" class="img-circle" style="width: 70px;height:70px;" src="__ADMIN__/images/a8.jpg" /></span>
							</if>
								<a data-toggle="dropdown" class="dropdown-toggle" href="#">
									<span class="clear">
                               <span class="block m-t-xs"><strong class="font-bold">{$user.user_login}</strong></span>
									<span class="text-muted text-xs block">{$user.nicename}<b class="caret"></b></span>
									</span>
								</a>
								<ul class="dropdown-menu animated fadeInRight m-t-xs">
									<li>
										<a class="J_menuItem" href="{:url('Index/repwd')}">修改密码</a>
									</li>
									<li>
										<a class="J_menuItem" href="{:url('Index/profile')}">编辑个人资料</a>
									</li>
									<li class="divider"></li>
									 <!--<li>-->
										<!--<a href="{:url('Index/clearcache')}" >清除缓存</a>-->
									<!--</li>-->
									<li>
										<a href="{:url('Admin/logout')}">安全退出</a>
									</li>
								</ul>
							</div>
							<hr>
							<div class="logo-element">
							</div>
						</li>
						{$SUBMENU_CONFIG}
					</ul>
				</div>
			</nav>
			<!--左侧导航结束-->
			<!--右侧部分开始-->
			<div id="page-wrapper" class="gray-bg dashbard-1">
				<div class="row border-bottom">
					<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
						<div class="navbar-header">
							<a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
							<form role="search" class="navbar-form-custom" method="post" action="search_results.html">
								<div class="form-group">
									<input type="text" style="width: 400px;" readonly="readonly" disabled placeholder="欢迎进入{$project_name}后台管理系统" class="form-control" name="top-search" id="top-search">
								</div>
							</form>
						</div>
						<!-- 消息通知开始 -->
						<!--<ul class="nav navbar-top-links navbar-right">-->
							<!--<li class="dropdown hidden-xs">-->
								<!--<a class="right-sidebar-toggle" aria-expanded="false" style="font-size:16px;">-->
									<!--<i class="fa fa-gear">平台系统设置</i>-->
								<!--</a>-->
							<!--</li>-->
						<!--</ul>-->
						<!-- 消息通知结束 -->
					</nav>
				</div>
				<div class="row content-tabs">
					<button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
                	</button>
					<nav class="page-tabs J_menuTabs">
						<div class="page-tabs-content"   id="page-tabs-demo">
							<a href="javascript:;" class="active J_menuTab" data-id="{:url('Index/welcome')}">首页</a>
						</div>
					</nav>
					<button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i></button>
					<div class="btn-group roll-nav roll-right">
						<button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>
                    </button>
						<ul role="menu" class="dropdown-menu dropdown-menu-right">
							<li class="J_tabShowActive">
								<a>定位当前选项卡</a>
							</li>
							<li class="divider"></li>
							<li class="J_tabCloseAll">
								<a>关闭全部选项卡</a>
							</li>
							<li class="J_tabCloseOther">
								<a>关闭其他选项卡</a>
							</li>
						</ul>
					</div>
					<a href="{:url('Admin/logout')}" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
				</div>
				<div class="row J_mainContent" id="content-main">
					<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="{:url('Index/welcome')}" frameborder="0" data-id="{:url('Index/welcome')}" seamless></iframe>
				</div>

				<div class="footer">
					<div class="pull-right">&copy; {$project_name}后台管理系统</div>
				</div>
			</div>
			<!--右侧边栏开始   消息通知开始-->
			<div id="right-sidebar" style="height: 167px;">
				<div class="sidebar-container" >
					<div class="tab-content">
						<div id="tab-1" class="tab-pane active">
							<div class="sidebar-title">
								<h3> <i class="fa fa-gear"></i> 基本设置</h3>
							</div>
							<div class="skin-setttings"  id="skin-setttings_admin">
								<a style="color:#fff" class="clearCache"><div class="setings-item blue-skin"><span class="skin-name"><i class="fa fa-trash">清除缓存</i></span></div></a>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--右侧边栏结束 消息通知地址信息开始-->
			<!--右侧部分结束-->
			<div style= "display:none " id="urllink" >
				<a class="J_menuItem" href="{:url('Index/clearcache')}" id="urllink1" >清除缓存</a>
				<a class="J_menuItem" href="{:url('System/color')}" id="urllink2" >更换皮肤</a>
			</div>
		</div>
		<script src="__ADMIN__/js/jquery-1.11.0.js"></script>
		<script src="__ADMIN__/js/bootstrap.min.js?v=3.3.5"></script>
		<script src="__ADMIN__/js/jquery.metisMenu.js"></script>
		<script src="__ADMIN__/js/jquery.slimscroll.min.js"></script>
		<script src="__ADMIN__/js/layer/layer.min.js"></script>
		<script src="__ADMIN__/js/hplus.min.js?v=4.1.0"></script>
		<script src="__ADMIN__/js/contabs.min.js"></script>
		<script src="__ADMIN__/js/pace.min.js"></script>
		<script src="__ADMIN__/plugins/layui/layui.all.js" 				type="text/javascript"></script>
		<script src="__ADMIN__/js/jquery.JPlaceholder.js"></script>
	</body>
	<script>
        //清除缓存
        $(".clearCache").click(function(){
            var index = layer.msg('清除缓存中，请稍候',{icon: 16,time:false,shade:0.8});
            setTimeout(function(){
                window.sessionStorage.clear();
                window.localStorage.clear();
                $("#right-sidebar").removeClass();
                $.post("{:url(\"Index/clearcache\")}");
                layer.close(index);
                layer.msg("缓存清除成功！",{icon:1,time:1000});
            },500);
        });

        function adminmessage(val){
            $("#urllink"+val).click();
            $('#fa-icon1').hide();
            $('#fa-icon2').show();
            $("#right-sidebar").removeClass();
        }
	</script>
</html>